package com.itheima;

import com.itheima.bean.CartoonCatAndMouse;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * ClassName: App
 * Description:
 * Date: 2023/03/23 PM 8:27:14
 * <p>
 * project: springboot
 * package: com.itheima
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@SpringBootApplication(excludeName = "org.springframework.boot.autoconfigure.context.LifecycleConfiguration")
// @Import(CartoonCatAndMouse.class)
public class App {

    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(App.class);
        CartoonCatAndMouse bean = ctx.getBean(CartoonCatAndMouse.class);
        bean.play();
    }
}
